<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('修改流程节点影像资料配置')"/>
                                                                                                                                                                                                </head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-stepDoc-edit" th:object="${wflStepDoc}">
                <input name="docId" th:field="*{docId}" type="hidden">
                                                                                                                        <div class="form-group">
                            <label class="col-sm-3 control-label is-required">流程版本号
                                ：</label>
                            <div class="col-sm-8">
                                <input name="versionId" th:field="*{versionId}" class="form-control"
                                       type="text" required>
                            </div>
                        </div>
                                                                                                                                                                        <div class="form-group">
                            <label class="col-sm-3 control-label is-required">节点编号
                                ：</label>
                            <div class="col-sm-8">
                                <input name="stepId" th:field="*{stepId}" class="form-control"
                                       type="text" required>
                            </div>
                        </div>
                                                                                                                                                                                            <div class="form-group">
                            <label class="col-sm-3 control-label">序号
                                ：</label>
                            <div class="col-sm-8">
                                <input name="orderNum" th:field="*{orderNum}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                                                                                                                                                                        <div class="form-group">
                            <label class="col-sm-3 control-label">是否必传            1-是            0-否
                                ：</label>
                            <div class="col-sm-8">
                                <select name="isMust" class="selectpicker form-control m-b"
                                        th:with="type=${@dict.getType('common_yes_no')}">
                                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}"
                                            th:value="${dict.dictValue}" th:field="*{isMust}"></option>
                                </select>
                            </div>
                        </div>
                                                                    </form>
</div>
<th:block th:include="include :: footer"/>
                                                                                                                                                                                                <script th:inline="javascript">
    var prefix = ctx + "workflow/stepDoc";
            $("#form-stepDoc-edit").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/edit", $('#form-stepDoc-edit').serialize());
        }
    }
                                                                                                                                                                                                                                                                                                                                                    </script>
</body>
</html>